
set( EXEC_NAME cudaGLCompute )

FIND_PACKAGE( CUDA )

if(CUDA_FOUND)
    set(CUDA_NVCC_FLAGS "-gencode;arch=compute_30,code=sm_30;")
endif()

file( GLOB Sources *.cpp *.cu )
file( GLOB Headers *.hpp *.cuh )

# -- GLEW --
file( GLOB GLEW_Sources ${THIRDPARTIES}/GL/*.c )
file( GLOB GLEW_Headers ${THIRDPARTIES}/GL/*.h )
#set( Sources ${SimpleWindow_Sources};${GLEW_Sources} )
#set( Headers ${SimpleWindow_Headers};${GLEW_Headers} )


#add_executable( ${EXEC_NAME} ${Sources} ${Headers} )
CUDA_ADD_EXECUTABLE( ${EXEC_NAME} ${Sources} ${Headers} )

message( ${AER_LIBRARY} )

target_link_libraries( ${EXEC_NAME} ${AER_LIBRARY} )
target_link_libraries( ${EXEC_NAME} ${GLEW_LIBRARY} )
target_link_libraries( ${EXEC_NAME} ${OPENGL_gl_LIBRARY} )
target_link_libraries( ${EXEC_NAME} sfml-window ) #${SFML_WINDOW_LIBRARY}
